﻿@model shradhabookstores.Admin

@{
    ViewBag.Title = "Login";
}
<h1>@ViewBag.Title</h1>
    @using (Html.BeginForm("Login", "AccountAdmin", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
    { 
         @Html.AntiForgeryToken()
         @Html.ValidationSummary(true)
    <table>
    <tr>
        <td>@Html.LabelFor(m => m.UserName)</td>
        <td>@Html.TextBoxFor(m => m.UserName)
           
        </td>
    </tr>
        <tr>
            <td>@Html.LabelFor(m=>m.Password)</td>
            <td>@Html.PasswordFor(m=>m.Password)
                @Html.ValidationMessageFor(m=>m.Password)
            </td>
        </tr>
        <tr>
            <td></td>
            <td><input type = "submit" value = "login" /></td>
        </tr>
</table>
       @ViewBag.message
        <p>
            @Html.ActionLink("Register","Register")    If you don't have a local account.
        </p>
    }
